{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
function myFunction()
{
	if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}
<form action='{}' name='Incoming List' method='POST'>
<input type="hidden" name="IncomingDetailId" value="{$IncomingDetailId}" />
<table border="0" align="center" width="50%">
<tr>
  <td colspan="10" class="table1" align="center"><font size="3">Incoming Register</font></td>
</tr>
<tr>
  <td class="table2" colspan="6" align="center"><b>Party </b>: {$incomingRegister.partyName}</td>
</tr>                                                         
<tr>
  <td class="table2"><b>Date&nbsp;:</b></td>
	<td class="table2">{$incomingRegister.IncomingDate}</td>
  <td class="table2"><b>Quality&nbsp; :</b></td>
  <td class="table2" align="right">{$incomingRegister.qty}</td>	
  <td class="table2" align="right"><b>Process1&nbsp; :</b></td>
  <td class="table2">{$incomingRegister.processName1}</td>
</tr>
<tr>
  <td class="table2"><b>Challan&nbsp; :</b></td>
  <td class="table2">{$incomingRegister.challan}</td>	
  <td class="table2" ><b>Weight&nbsp; :</b></td>
  <td class="table2" align="right">{$incomingRegister.weight}</td>	
  <td class="table2"  align="right"><b>Process2&nbsp; :</b></td>
	<td class="table2">{$incomingRegister.processName2}</td>
</tr>
<tr>
  <td class="table2"><b>Material&nbsp; :</b></td>
  <td class="table2">{$incomingRegister.material}</td>	
  <td class="table2"><b>Hardne&nbsp; :</b></td>
  <td class="table2" align="right">{$incomingRegister.hardne}</td>	
  <td class="table2" align="right"><b>Process3&nbsp; :</b></td>
  <td class="table2">{$incomingRegister.processName3}</td>
</tr>
</table>
<br>
<table align="center" border=0 width="50%">
<input type="hidden" name="incomingId"/>	
<tr>
  <td align="right" class="table2"><b><font color="#FF5A01">&nbsp;</font></td>
  <td align="right" class="table2"><b>{$incomingRegister.column1}</b></td>
  <td align="right" class="table2"><b>{$incomingRegister.column2}</b></td>
  <td align="right" class="table2"><b>{$incomingRegister.column3}</b></td>
  <td align="right" class="table2"><b>{$incomingRegister.column4}</b></td>
  <td align="right" class="table2"><b>{$incomingRegister.column5}</b></td>
  <td align="right" class="table2"><b>{$incomingRegister.column6}</b></td>
</tr>
{section name="sec" loop=$incomingDetailArray}
<tr>
	<td class="table2" align="center">
  <a href="incomingRegisterDelete.php?IncomingDetailId={$incomingDetailArray[sec].IncomingDetailId}&incomingId={$incomingDetailArray[sec].incomingId}"  onclick="return myFunction();" class="link"><img src="./images/deleteIco.png"></a></td>
	<td class="table2" align="right">{$incomingDetailArray[sec].columns1}</td>
	<td class="table2" align="right">{$incomingDetailArray[sec].columns2}</td>
	<td class="table2" align="right">{$incomingDetailArray[sec].columns3}</td>
	<td class="table2" align="right">{$incomingDetailArray[sec].columns4}</td>
  <td class="table2" align="right">{$incomingDetailArray[sec].columns5}</td>
	<td class="table2" align="right">{$incomingDetailArray[sec].columns6}</td>
</tr>
{sectionelse}
<tr>
  <td align="center" colspan="15"><font size = '4' color='red'>{$msg}</font></td>
</tr>
{/section}
</table>
</form>
{/block}